<?php
	include_once("conn.php");

	$got11 = $_POST["name11"];
	$got22 = $_POST["name22"];

	$got11 = iconv("UTF-8", "GBK//IGNORE", $got11);
	$got22 = iconv("UTF-8", "GBK//IGNORE", $got22);

	mysql_set_charset("latin1");
	$sql="update category set cate_name='".mysql_escape_string($got11).
		"' where cate_name='".mysql_escape_string($got22)."'";

	$result = mysql_query($sql);
	echo "$got11";

?>